package com.casa.POI.dianping;
public class Console {

	public static void write(String text) {
		if (text != null) {
			System.out.print(text);
		}
	}

	public static void write(String format, Object... args) {
		write(String.format(format, args));
	}

	public static void writeLine(String text) {
		if (text != null) {
			System.out.println(text);
		}
	}

	public static void writeLine(String format, Object... args) {
		writeLine(String.format(format, args));
	}

	public static void rewrite(String text) {
		write("\r" + text);
	}

	public static void rewrite(String format, Object... args) {
		rewrite(String.format(format, args));
	}

	public static void rewriteLine(String text) {
		writeLine("\r" + text);
	}

	public static void rewriteLine(String format, Object... args) {
		rewriteLine(String.format(format, args));
	}
	
	public static void newLineWrite(String text) {
		write("\n" + text);
	}
	
	public static void newLineWrite(String format, String args) {
		newLineWrite(String.format(format, args));
	}
	
	public static void newLineWriteLine(String text) {
		writeLine("\n" + text);
	}
	
	public static void newLineWriteLine(String format, Object... args) {
		newLineWriteLine(String.format(format, args));
	}

}
